home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_09_08 / 9n08128a < prev    next >
Text File  |  1991-06-16  |  649b  |  28 lines

  1.  
  2. main( )
  3.  
  4.   char *fptr;
  5.   unsigned err_code
  6.   int ***array;
  7.   int init=O;
  8.   static unsigned d[3]={3,3,3};
  9.   static int st[3]={0,0,0};
  10.   int t,n,j;
  11.   array = (int ***)daa(sizeof(int),3,d,st,&err_code, &fptr, &init);
  12.  
  13.   for(t=O;t<3;t++){
  14.       for(n=O;n<3;n++){
  15.          for(j=O;j<3;j++){
  16.             printf("%O8x ",&array[t][n][j]);
  17.          }
  18.        }                                                         
  19.      
  20.   }
  21.   printf("\n");
  22. }
  23.  
  24. Under OS9/68000 with the Microware C compiler I get a most interesting
  25. list of addresses--most of which point to memory not even extant in my
  26. computer, let alone in the array bounds.
  27.  
  28.